package com.example.jimanguang.Repositories;

import com.example.jimanguang.Entity.Chapters;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

public interface ChaptersRepository extends JpaRepository<Chapters, UUID> {

    //统计章节数量
     Integer countAllByComicsId(UUID comicsId);
     //查看章节信息
    List<Chapters> findAllByComicsIdOrderBySortAsc(UUID comisId);

}
